package com.study.cloud.simpleprovideruser.service.impl;

import com.study.cloud.simpleprovideruser.dao.UserMapper;
import com.study.cloud.simpleprovideruser.pojo.User;
import com.study.cloud.simpleprovideruser.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public User findById(Long id) {
        return userMapper.findById(id);
    }
}
